package com.baizhi.service.impl;

import com.baizhi.entity.Cmfzmenu;
import com.baizhi.mapper.CmfzmenuMapper;
import com.baizhi.service.CmfzmenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
@Transactional
public class CmfzmenuServiceImpl implements CmfzmenuService {
    @Autowired
    private CmfzmenuMapper cmfzmenuMapper;
    @Transactional(readOnly = true)
    @Override
    public List<Cmfzmenu> selectAll() {
        List<Cmfzmenu> cmfzmenus = cmfzmenuMapper.selectAll();
        return cmfzmenus;
    }
}
